package com.zat.mes.andrmes.dofun.work.adapter

import android.text.TextUtils
import android.view.View
import android.widget.TextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.zat.mes.andrmes.R
import com.zat.mes.andrmes.data.GetPackBean
import com.zat.mes.andrmes.data.Itemm
import com.zat.mes.andrmes.data.YarnItem
import com.zat.mes.andrmes.data.YarnUnItem

/**
 * @author zy
 * @date :2021-01-13 09:28
 * @description: 退纱列表
 */
class YarnUnListAdapter(layoutResId: Int) :
    BaseQuickAdapter<YarnUnItem, BaseViewHolder>(layoutResId), LoadMoreModule {

    var selectPosition:Int = -1
    override fun convert(helper: BaseViewHolder, item: YarnUnItem) {

        helper.setText(R.id.tvScheduNo, "排版号："+item?.scheduNo)
            .setText(R.id.tvDate, item?.inputDate)
            .setText(R.id.tvEmp, "领纱人：" + item?.className + "-" + item?.unYarnEmpName)
            .setText(R.id.tvFirstQty, item?.unitOneSize + "" + item?.unitOneName)
            .setText(R.id.tvSecondQty, item?.unitTwoSize + "" + item?.unitTwoName)
            .setText(R.id.tvBanci, item?.frequency)
            .setText(R.id.tvMetraName,"原料："+item?.rawMaterialName)
    }
}